package cn.lijiajia3515.cairo.auth;

import cn.lijiajia3515.cairo.auth.modules.account.Account;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 身份 meta
 */
@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class CairoAuthMeta implements Serializable {
	private Action created;
	private Action lastModified;

	@Data
	@Accessors(chain = true)

	@NoArgsConstructor
	@AllArgsConstructor
	@SuperBuilder(toBuilder = true)
	public static class Action implements Serializable {
		private Account account;
		private LocalDateTime at;
		private String remark;
	}
}
